#!/bin/bash

# save this file to either /etc/caudecrc or ~/.caudecrc

# please set the full path, don't use '~' as an abbreviation for "${HOME}"
WIN32PATH="${HOME}/.wine"
WIN64PATH="${HOME}/win64"

# default compression levels (try 'caudec -c CODEC -q help' for a full list of possible values)
compression_FLAC=5 # 0-8
compression_Flake=5 # 0-12
compression_WavPack=d # d, x[1-6], f[x[1-6]], h[x[1-6]], hh[x[1-6]]
bitrate_WavPackLossy=320 # 2.9-23.9 or 24-9600
compression_MonkeysAudio=2 # 1-5
compression_TAK=2 # 0-4[e|m]
compression_lossyWAV=S # X, P, C, S, H, E, I
compression_Musepack=5 # 0-10
bitrate_Opus=96 # 6-320

compression_LAME=2 # 0-9, used with LAME_MODE='VBR'
bitrate_LAME=320 # 16-320, used with LAME_MODE='CBR'
average_bitrate_LAME=256 # 8-310, used with LAME_MODE='ABR'
LAME_MODE='VBR' # 'VBR' (variable bitrate), 'CBR' (constant bitrate) or 'ABR' (average bitrate)

compression_AAC=0.5 # 0.0-1.0, used with AAC_MODE='VBR'
bitrate_AAC=256 # 0-320, used with AAC_MODE='CBR'
average_bitrate_AAC=256 # 0-320, used with AAC_MODE='ABR'
AAC_MODE='VBR' # 'VBR' (variable bitrate), 'CBR' (constant bitrate) or 'ABR' (average bitrate)

compression_QAAC=90 # 0-127 or 'iTunes', used with QAAC_MODE='VBR'
bitrate_QAAC=256 # 0-320, used with QAAC_MODE='CBR'
average_bitrate_QAAC=256 # 0-320, used with QAAC_MODE='ABR'
QAAC_MODE='VBR' # 'VBR' (variable bitrate), 'CBR' (constant bitrate) or 'ABR' (average bitrate)

compression_OggVorbis=3 # 0-10, use with OggVorbis_MODE='VBR'
bitrate_OggVorbis=256 # 32-500, used with OggVorbis_MODE='CBR'
average_bitrate_OggVorbis=256 # 32-500, used with OggVorbis_MODE='ABR'
OggVorbis_MODE='VBR' # 'VBR' (variable bitrate), 'CBR' (constant bitrate) or 'ABR' (average bitrate)

maxInstances=1 # maximum number of caudec instances allowed to run concurrently
maxInputFiles=100 # raise a warning and exit if the number of input files is higher than that
preloadSources=true # cache source files to a ramdisk before processing them, see "Performance" on the wiki
preventClipping=true # reduce volume to prevent clipping, when resampling or applying gain
setCompilationFlagWithAlbumArtist=false # always true when ALBUMARTIST="Various Artists" regardless of this setting
keepWavMetadata=false # set to true to keep WAV metadata with FLAC and WavPack
hashes='' # comma separated list of hashes to compute and tag (CRC, MD5 and / or SHA1)

# Whitelist / Blacklist: lists of comma separated tags
# Example: 'artist, date, album, tracknumber, title, genre, replaygain_reference_loudness, replaygain_track_gain, replaygain_track_peak, replaygain_album_gain, replaygain_album_peak'
# Tags in those lists are case-insensitive and format-agnostic.
# Example: 'albumartist' will match both 'ALBUMARTIST' and 'Album Artist'; 'organization' will match 'ORGANIZATION' and 'Label'.

# Current list of tag name variations:
# albumartist <---> album artist
# date <---> year
# description <---> comment
# discnumber <---> disc
# disctotal <---> totaldiscs
# labelno <---> catalog
# location <---> record location
# organization <---> label
# sourcemedia <---> media
# tracknumber <---> track
# tracktotal <---> totaltracks

# If you find a tag mismatch, or a missing tag name variation, please report it on the issues tracker:
# https://code.google.com/p/caudec/issues/list

# tagWhitelist: tags to keep when transcoding (all others are discarded - inactive if empty)
tagWhitelist=''

# tagBlacklist: tags to discard when transcoding (all others are kept - inactive when empty, and when tagWhitelist is non-empty)
tagBlacklist=''
